import dayjs from "dayjs"
export const getToDay = ()=>{
	let date = dayjs().subtract(1,"day").format("YYYY-MM-DD")
	console.log(date)
	return date
}

export const getDateDetail = ()=>{
	// let date = new Date()
	// let year = date.getFullYear()
	// let month = date.getMonth()+1
	// let day = date.getDate()
	// let hour = date.getHours()
	// let min = date.getMinutes()
	// let seconds = date.getSeconds()
	// return `${year}-${month}-${day} ${hour}:${min}:${seconds}`
	let date = dayjs().format("YYYY-MM-DD HH:mm:ss")
	return date
}